<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
	<meta charset="utf-8" />
	<title>我的解答</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" />
	<meta name="format-detection" content="telephone=no" />
	<link type="text/css" rel="stylesheet" href="{weixin::$staticFilePath}/css/style.css" />
    <link type="text/css" rel="stylesheet" href="/tpl/Wap/default/common/css/products/4/css/style.css" />
	<script src="{weixin::$staticFilePath}/js/jquery.min.js" type="text/javascript"></script>
	<script type="text/javascript" src="{weixin::$staticFilePath}/js/main.js"></script>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script src='/tpl/Wap/default/js/share.js'></script>
    <script type="text/javascript">
	var title = "{weixin:$name}";
    var desc  = "{weixin:$wxshop.wxshop_desc}";
	var link  = "{weixin::C('site_url')}/index.php?g=Wap&m=Product&a=products&token={weixin:$_GET['token']}";
    var imgUrl = "{weixin::C('site_url')}/images/logo.png";
	var appId= '{weixin:$signPackage["appId"]}';
    var timestamp = '{weixin:$signPackage["timestamp"]}';
    var nonceStr = '{weixin:$signPackage["nonceStr"]}';
    var signature= '{weixin:$signPackage["signature"]}';
	$(function(){ 
  		share(title,desc,link,imgUrl,appId,timestamp,nonceStr,signature);
 	}); 
    </script>
    <style type="text/css">
	   th
	   {
		   color:white;
		   font-size:16px;
		   height:30px;
	   }
       th,td
        {
            border-bottom: solid #eee 1px;
        }
    </style>
    <script>
	 function firmDel(id)
   {
	  document.getElementById('message-notice_'+ id).style.display='block';
   }

	</script>
</head>

<body style="line-height:1.6">
<form action="" method="post" name="form1" style="padding-bottom:5px;">
<div class="u_main">
<h2><center>我的解答</center></h2>
    <div style="padding: 10px;">
    <div>日期：{weixin:$consultation.consult_time|date='Y-m-d',###}</div>
    <div style="width:98%;">
     {weixin:$consultation.consult_desc}
    </div>
    <div>咨询费：{weixin:$consultation.consult_fee}</div>
    <div>状态：{weixin:$solution_status}</div>
    </div>
    <if condition="$solution.status eq 0">
      <div>
        <div style="width: 80%; padding-left: 10%">如果您抢答，请咱在12小时内完成解答。如果您不了解这个领域，请按“拒绝”。</div>
        <div style="text-align: center; font-size: 21px; font-weight: bolder;">
          <a href="{weixin::U('Userinfo/solutions',array('token'=>$_GET['token']))}">拒绝</a>&nbsp;&nbsp;
          <a href="{weixin::U('Userinfo/toSolution',array('token'=>$_GET['token'],'id'=>$solution['id']))}">抢答</a>
        </div>
      </div>
    <else />
    <div style="padding: 10px;">
	   <div style="padding: 20px; background-color:#ddff77;border: 1px solid #eee;">{weixin:$solution.solution_desc}</div>
	</div>
	 
	 <div style="padding: 10px; <if condition="!$is_add">display: none;</if>">
	   <div>追问：</div>
	   <div>日期：{weixin:$consultation.addto_time|date='Y-m-d',###}</div>
	   <div>
	   	 {weixin:$consultation.addto_desc}
	   </div>
	    <if condition="$is_add && $is_addsolution">
	   	 <div style="padding: 10px;word-break:break-all; width:90%; background-color:#ddff77;border: 1px solid #eee;">{weixin:$solution.addsolution_desc}</div>
	     <div style="text-align: center;font-size: 21px; font-weight: bolder;"><a href="javascript:history.go(-1);">返回</a></div>
	    <else />
	       <textarea name="addsolution_desc" placeholder="追问解答" rows="5"></textarea>
	       <div style="text-align: center;font-size: 21px; font-weight: bolder;"><button type="submit">提交追问解答</button></div>
	    </if>
	  </div>
      </if>
	<div>
	</div>
</div>
</form>
</body>
</html>